package com.whut.mapper;

import com.whut.enums.ProjectSampleType;
import com.whut.model.ProjectSample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectSampleMapper {
    int insert(ProjectSample t);

    int updateById(ProjectSample t);

    ProjectSample getById(Integer id);

    List<ProjectSample> listByProjectAndType(@Param("projectId") Integer projectId, ProjectSampleType type);

    ProjectSample getLast1(@Param("projectId") Integer projectId, @Param("type") ProjectSampleType type);

}
